Optimal. Leaf size=51 \[ \frac {(a+2 b) \cos ^3(c+d x)}{3 d}-\frac {(a+b) \cos (c+d x)}{d}-\frac {b \cos ^5(c+d x)}{5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {3013, 373} \[ \frac {(a+2 b) \cos ^3(c+d x)}{3 d}-\frac {(a+b) \cos (c+d x)}{d}-\frac {b \cos ^5(c+d x)}{5 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 373
Rule 3013
Rubi steps
\begin {align*} \int \sin ^3(c+d x) \left (a+b \sin ^2(c+d x)\right ) \, dx &=-\frac {\operatorname {Subst}\left (\int \left (1-x^2\right ) \left (a+b-b x^2\right ) \, dx,x,\cos (c+d x)\right )}{d}\\ &=-\frac {\operatorname {Subst}\left (\int \left (a \left (1+\frac {b}{a}\right )-(a+2 b) x^2+b x^4\right ) \, dx,x,\cos (c+d x)\right )}{d}\\ &=-\frac {(a+b) \cos (c+d x)}{d}+\frac {(a+2 b) \cos ^3(c+d x)}{3 d}-\frac {b \cos ^5(c+d x)}{5 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 77, normalized size = 1.51 \[ -\frac {3 a \cos (c+d x)}{4 d}+\frac {a \cos (3 (c+d x))}{12 d}-\frac {5 b \cos (c+d x)}{8 d}+\frac {5 b \cos (3 (c+d x))}{48 d}-\frac {b \cos (5 (c+d x))}{80 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.41, size = 43, normalized size = 0.84 \[ -\frac {3 \, b \cos \left (d x + c\right )^{5} - 5 \, {\left (a + 2 \, b\right )} \cos \left (d x + c\right )^{3} + 15 \, {\left (a + b\right )} \cos \left (d x + c\right )}{15 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.13, size = 67, normalized size = 1.31 \[ -\frac {b \cos \left (d x + c\right )^{5}}{5 \, d} + \frac {a \cos \left (d x + c\right )^{3}}{3 \, d} + \frac {2 \, b \cos \left (d x + c\right )^{3}}{3 \, d} - \frac {a \cos \left (d x + c\right )}{d} - \frac {b \cos \left (d x + c\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.44, size = 54, normalized size = 1.06 \[ \frac {-\frac {b \left (\frac {8}{3}+\sin ^{4}\left (d x +c \right )+\frac {4 \left (\sin ^{2}\left (d x +c \right )\right )}{3}\right ) \cos \left (d x +c \right )}{5}-\frac {a \left (2+\sin ^{2}\left (d x +c \right )\right ) \cos \left (d x +c \right )}{3}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.34, size = 43, normalized size = 0.84 \[ -\frac {3 \, b \cos \left (d x + c\right )^{5} - 5 \, {\left (a + 2 \, b\right )} \cos \left (d x + c\right )^{3} + 15 \, {\left (a + b\right )} \cos \left (d x + c\right )}{15 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 13.37, size = 44, normalized size = 0.86 \[ -\frac {\frac {b\,{\cos \left (c+d\,x\right )}^5}{5}+\left (-\frac {a}{3}-\frac {2\,b}{3}\right )\,{\cos \left (c+d\,x\right )}^3+\left (a+b\right )\,\cos \left (c+d\,x\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 3.32, size = 107, normalized size = 2.10 \[ \begin {cases} - \frac {a \sin ^{2}{\left (c + d x \right )} \cos {\left (c + d x \right )}}{d} - \frac {2 a \cos ^{3}{\left (c + d x \right )}}{3 d} - \frac {b \sin ^{4}{\left (c + d x \right )} \cos {\left (c + d x \right )}}{d} - \frac {4 b \sin ^{2}{\left (c + d x \right )} \cos ^{3}{\left (c + d x \right )}}{3 d} - \frac {8 b \cos ^{5}{\left (c + d x \right )}}{15 d} & \text {for}\: d \neq 0 \\x \left (a + b \sin ^{2}{\relax (c )}\right ) \sin ^{3}{\relax (c )} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________